<template>
<!-- 地图容器 -->
<button @click="returnhome()">返回</button>
    <div id="allmap">
        
    </div>
   
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'
       
    //    var map = new BMapGL.Map("allmap");    // 创建Map实例
	// map.centerAndZoom(new BMapGL.Point(116.404, 39.915), 11);  // 初始化地图,设置中心点坐标和地图级别
	// map.enableScrollWheelZoom(true);     //开启鼠标滚轮缩放
  const router = useRouter()
const returnhome = ()=>{
    router.push({path:'/home'})
}




    
</script>

<style lang="scss" scoped>

 #allmap {width: 100%;height: 100%;overflow: hidden;margin:0;font-family:"微软雅黑";}

</style>
